import { defHttp } from '@/utils/http/axios';

// 查询店铺列表 所有
export function getShopAllList(query) {
  return defHttp.post({
    url: '/shop/manage/shopAllList',
    method: 'post',
    params: query,
  });
}

// 查询店铺列表
export function getShopList(query, data) {
  return defHttp.post({
    url: '/shop/manage/shopList',
    method: 'post',
    params: query,
    data: data,
  });
}

// 设置店铺为禁用状态
export function disable(data) {
  return defHttp.post({
    url: '/shop/manage/disable',
    method: 'post',
    data: data,
  });
}

// 启用店铺
export function startUp(data) {
  return defHttp.post({
    url: '/shop/manage/startUp',
    method: 'post',
    data: data,
  });
}
